<?php
	require('includes/startup.php');
	include_once  SITE_PATH .DS. 'languages' .DS. 'vn.php';
	$GLOBALS['lang'] = $lang;
	require PATH_SMARTY.DS.'Smarty.class.php';
	
	#Smarty
	$smarty = new Smarty();      
	$smarty->template_dir = PATH_SMARTY_TEMPLATE;
	$smarty->compile_dir = PATH_SMARTY_COMPILED;
	$registry->set('smarty', $smarty);
	
	# Create router instance and run the Application
	$router = new Router($registry);
	Application::setRouter($router);
	Application::run();

?>